<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
<?php
//no direct access
defined('_JEXEC') or die( 'Restricted access' );
//import the JController Class
jimport( 'joomla.application.component.view' );


class NvViewWeather extends JView {
	
	/* fungsi display default
	 * @void
	 */
    function display(){
		//get flickr model object
		
    	$kota = JRequest::getVar('kota',0,"POST");
    	$model = $this->getModel('weather');
    	
    		
    	$listKota = $model->getAllKota();

    	$this->assignRef('list',$listKota);
    	
    	if(!empty($kota)){
    	
    	
    	//get picture 
    	$dataArr = $model->getWeather($kota);
    	
    	$this->assignRef('data',$dataArr);
    	
    	}
    	
    		
    	
    	
       	parent::display();
    }
}
?>
